Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Jan 2007 15:19:53 +0000 (15:19 +0000)
committerChris Wilson <cpwilson@src.gnome.org>
Mon, 22 Jan 2007 15:19:53 +0000 (15:19 +0000)
commitc41296336a0fa1352e3f8ee87ecd78b1a1a8d252
treeea60f05b24d3aa584f34dad395a8af3033cc918d
parenta236fb7a26e4bc419250e9b53143f82da389c173
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach

2007-01-22  Chris Wilson <chris@chris-wilson.co.uk>

Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach

* gtk/gtkstyle.h:
Cause gcc to issue a warning if the style returned from
gtk_style_attach is not used. Failure to update
widget->style causes some very difficult to identify bugs,
eg Bug 353498 – crash in Terminal: changing icon theme.

svn path=/trunk/; revision=17199
ChangeLog
gtk/gtkstyle.h